﻿
namespace MyFurion.Application.Dtos
{
    /// <summary>
    /// 菜单查询条件
    /// </summary>
    public class MenuInfoPage:PageBaseInput
    {
        /// <summary>
        /// 菜单编码
        /// </summary>
        public string MenuCode { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 菜单类别
        /// </summary>
        public EnumMenuType? MenuType { get; set; }
    }
    /// <summary>
    /// 菜单新增信息
    /// </summary>
    public class MenuInfoAdd
    {
        /// <summary>
        /// 父级Id
        /// </summary>
        public long? ParentId { get; set; }
        /// <summary>
        /// 菜单编码
        /// </summary>
        //[Required(ErrorMessage = "菜单编码不能为空")]
        public string MenuCode { get; set; } = string.Empty;
        /// <summary>
        /// 菜单名称
        /// </summary>
        [Required(ErrorMessage = "菜单名称不能为空")]
        public string MenuName { get; set; } = string.Empty;
        /// <summary>
        /// 菜单类别
        /// </summary>
        public EnumMenuType MenuType { get; set; }
        /// <summary>
        /// 菜单路由地址
        /// </summary>
        public string MenuUrl { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string MenuIcon { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public EnumStatus Status { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int SortNum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
    /// <summary>
    /// 菜单修改信息
    /// </summary>
    public class MenuInfoUpdate:MenuInfoAdd
    {
        /// <summary>
        /// id
        /// </summary>
        public long Id { get; set; }
    }
}
